﻿using System.Collections.Generic;
using System.Drawing.Printing;
using System.Windows.Forms;

namespace TestPrint.CommonPrintSet
{
    public partial class BaseSetting : UserControl
    {
        public BaseSetting()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 查找本地打印机
        /// </summary>
        /// <returns>List</returns>
        public string[] FindPrinters()
        {
            List<string> Printers = new List<string>();
            foreach (string printer in PrinterSettings.InstalledPrinters)
            {
                Printers.Add(printer);
            }
            return Printers.ToArray();
        }

        public virtual void Save()
        {
        }
    }
}
